﻿using System;
using System.IO;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class CalcDeltaRecord : BiffRecord
    {
        private double _value = 0.001;

        protected override void ReadContent(BiffReaderContext context, int length)
        {
            _value = context.ReadDouble();
        }

        internal override BiffRecordType RecordType
        {
            get { return BiffRecordType.CalcDelta; }
        }

        internal override void WriteContent(BiffWriterWorkbookContext context)
        {
            context.Writer.Write(_value);
        }
    }
}